package com.java.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;
import javax.validation.constraints.NotBlank;

/**
 * 角色
 * 
 * @author jl
 * @since 2020-10-09 09:30:58
 */
@Data
@TableName("role")
public class Role implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
    @TableId(type = IdType.INPUT)
    private String id;
	/**
	 * 角色
	 */
    @NotBlank(message = "角色不能为空")
    private String name;
	/**
	 * 描述
	 */
    @NotBlank(message = "描述不能为空")
	@TableField(value = "`desc`")
    private String desc;

    @TableField(exist = false)
	private List<String> resourceIds;

	@TableField(exist = false)
	private List<String> userIds;

}
